//
//@author jltxseo
// Created by junlintianxia on 2018/8/9.
//

#ifndef LEARNOPENGLANDROIDPRO_TUTORIALLESSONFOUR_H
#define LEARNOPENGLANDROIDPRO_TUTORIALLESSONFOUR_H

#include <util/Shader.h>
#include "../TutorialLesson.h"
#include "graphics/Matrix.h"

class TutorialLessonFour :public TutorialLesson{
public:
    TutorialLessonFour();
    ~TutorialLessonFour();
    virtual void create() override ;
    virtual void change(int width, int height) override ;
    virtual void draw() override ;

private:
    GLfloat rectangleVerticesData1[12] = {
            -1.0f, 1.0f, 0.0f, //top left
            -1.0f, -1.0f, 0.0f, //bottom left
            1.0f, -1.0f, 0.0f,  //bottom right
            1.0f, 1.0f, 0.0f,  //top right
    };

    GLfloat rectangleColorData1[16] = {
            1.0f, 0.0f, 0.0f, 1.0f,
            0.0f, 0.0f, 1.0f, 1.0f,
            0.0f, 1.0f, 0.0f, 1.0f,
            1.0f, 0.0f, 0.0f, 1.0f,
    };

    GLint rectangleVerticesIndex1[6] = {0, 1, 2, 0, 3, 2};
    Shader *mShader;
};


#endif //LEARNOPENGLANDROIDPRO_TUTORIALLESSONFOUR_H
